package com.chinasoft.book.service.impl;
import com.chinasoft.book.mapper.BookMapper;
import com.chinasoft.book.service.BookService;
import lombok.AllArgsConstructor;
import lombok.ToString;

@AllArgsConstructor
@ToString
public class BookServiceImpl4 implements BookService {
    //BookMapper bookMapper2=new BookMapperImpl2();
    BookMapper bookMapper;
    String name;
    Integer age;


    @Override
    public void queryBook() {
        System.out.println("book service version 4");
        System.out.println(this.name);
        System.out.println("业务层 执行代码");
        String result = bookMapper.selectById(100);
        System.out.println(result);
        System.out.println(this);
    }
}


